var Block = function (position, g) {
    // position 是 [x, y, lifes] 形式的数组
    let p = position
    let img = g.imgByName('block');
    let o = {
        image: img,
        x: p[0],
        y: p[1],
        lives: p[2],
        alive: true,
    }
    o.kill = function () {
        o.lives -= 1
        if (o.lives < 1) {
            o.alive = false
        }
        scores += 100
    }
    o.collide = function (ball) {
        return o.alive && checkPound(o, ball)
    }
    return o;
}